package com.cqw.vo;

import com.cqw.validate.Add;
import com.cqw.validate.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-05-13 10:40
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActivityVO {


    @ApiModelProperty(value = "id")
    @NotNull(message = "活动id不能为空", groups = {Update.class})
    private Long id;


    @ApiModelProperty(value = "活动名称")
    @NotBlank(message = "活动名称不能为空", groups = {Add.class, Update.class})
    private String activityName;


    @ApiModelProperty(value = "活动链接")
    private String activityUrl;


    @ApiModelProperty(value = "活动开始时间")
    @NotNull(message = "活动开始时间不能为空", groups = {Add.class, Update.class})
    private Date startTime;


    @ApiModelProperty(value = "活动结束时间")
    @NotNull(message = "活动结束时间不能为空", groups = {Add.class, Update.class})
    private Date endTime;


    @ApiModelProperty(value = "活动类型：1普通活动，2抽奖活动")
    private Integer type;


    @ApiModelProperty(value = "活动状态：1编辑中,2已发布")
    private Integer status;


    @ApiModelProperty(value = "备注")
    private String remark;


    @ApiModelProperty(value = "新建时间")
    private Date createTime;


    @ApiModelProperty(value = "新建人")
    private Long createBy;


    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


    @ApiModelProperty(value = "修改人")
    private Long updateBy;


}
